<admintpl file="header" />
</head>
<body class="J_scroll_fixed">
	<div class="wrap J_check_wrap">
		<ul class="nav nav-tabs">
			<li class="active"><a href="{:U('School/index')}">学校列表</a></li>
			<if condition="!I('session.school_id') && I('session.packet_id') == 3">
				<li><a href="{:U('School/add')}">添加学校</a></li>
			</if>
		</ul>
		<table class="table table-hover table-bordered">
			<thead>
				<tr>
					<th width="30">ID</th>
					<th>学校名称</th>
					<th>学校简称</th>
					<th width="60">学校类型</th>
					<th>服装申报</th>
					<th width="160">所属地区</th>
					<th width="30">操作</th>
				</tr>
			</thead>
			<tbody>
				<foreach name="schoolinfos" item="infos">
				<tr>
					<td>{$infos.id}</td>
					<td>
						<a href="{:U('Grade/index',array('sid'=>$infos['id']))}">{$infos.school_name}</a>
					</td>
					<td>{$infos.short_name}</td>
					<td>
						<foreach name="schooltype" item="type">
							<if condition="$type['id'] eq $infos['school_type']">
								{$type.name}
							</if>
						</foreach>
					</td>
					<td><a href="{:U('ApplyInfos/admin_sel',array('sid'=>$infos['id']))}">点击查看
						<foreach name="apply" item="appl">
							<if condition="$appl['school_id'] eq $infos['id']">
								<foreach name="status" item="stat">
									<if condition="$appl['status'] eq $stat['id']">
										- {$stat.name}
									</if>
								</foreach>
							</if>
						</foreach></a></td>
					<td>
						<if condition="$infos['pos_province'] && $infos['pos_city'] && $infos['pos_district']">
						{$infos.pos_province} - {$infos.pos_city} - {$infos.pos_district}
						</if>
					</td>
					<td><a href='{:U("School/edit",array("id"=>$infos["id"]))}'>修改</a></td>

				</tr>
				</foreach>
			</tbody>
		</table>
		<div class="pagination">{$page}</div>
	</div>
	<script src="__ROOT__/statics/js/common.js"></script>
</body>
</html>